package com.unidt.www.module.third.workbar.app;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author sk
 * @Description:
 * @Date 2022/11/17 13:13
 **/
@Component
@Data
@EnableConfigurationProperties(AppConfig.class)
@ConfigurationProperties(prefix ="work.app" )
public class AppConfig {


    public   String appKey;

    public  String appSecret ;

    public   String baseUrl;


    public   String  getAccessTokenUrl(){
        return baseUrl+"/open/api/usc/auth/getAccessToken";
    }


    public   String  getDeptScopeUrl(){
        return this.baseUrl+"/open/api/cms/app/org/scopes";
    }


    public   String  getSendNotifyUrl(){
        return this.baseUrl+"/open/api/notify/send";
    }

    public   String  getSendNotifyUpdateUrl(){
        return this.baseUrl+"/open/api/notify/update";
    }



    public   String  getChildDept(){
        return this.baseUrl+"/open/api/cms/app/org/pageSubUnits";
    }

    public   String  getUserByAuthCode(){
        return baseUrl+"/open/api/usc/auth/getUserByAuthCode";
    }


}
